package com.greedy.bean.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Timestamp;
import java.time.LocalDateTime;

/**
 * @Author: Yanxy
 * @Date: Created in:2022-12-24
 * Description: 优惠券
 */
@Data
@Accessors(chain = true)
public class Voucher implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @JSONField(name = "ID")
    private Long id;

    /**
     * 商铺id
     */
    @JSONField(name = "SHOP_ID")
    private Long shopId;

    /**
     * 代金券标题
     */
    @JSONField(name = "TITLE")
    private String title;

    /**
     * 副标题
     */
    @JSONField(name = "SUB_TITLE")
    private String subTitle;

    /**
     * 使用规则
     */
    @JSONField(name = "RULES")
    private String rules;

    /**
     * 支付金额
     */
    @JSONField(name = "PAY_VALUE")
    private Long payValue;

    /**
     * 抵扣金额
     */
    @JSONField(name = "ACTUAL_VALUE")
    private Long actualValue;

    /**
     * 优惠券类型
     */
    @JSONField(name = "TYPE")
    private Integer type;

    /**
     * 优惠券类型
     */
    @JSONField(name = "STATUS")
    private Integer status;
    /**
     * 库存
     */
    @JSONField(name = "STOCK")
    private Integer stock;

    /**
     * 生效时间
     */
    @JSONField(name = "BEGIN_TIME")
    private Timestamp beginTime;

    /**
     * 失效时间
     */
    @JSONField(name = "END_TIME")
    private Timestamp endTime;

    /**
     * 创建时间
     */
    @JSONField(name = "CREATE_TIME")
    private Timestamp createTime;


    /**
     * 更新时间
     */
    @JSONField(name = "UPDATE_TIME")
    private Timestamp updateTime;


}
